@extends('home.seller.layout.index')

@section('content')
	<div class="mws-panel grid_6">
    	<div class="mws-panel-header">
        	<span><i class="icon-table"></i>店铺详情</span>
        </div>
        <div class="mws-panel-body no-padding">
            <table class="mws-table">
                <tbody>
                    <tr>
                        <td style="width:30%;padding-left:5%">店铺名称</td>
                        <td>{{ $data['name'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">店铺类型</td>
                        <td>{{ $data['type'] }}</td>
                    </tr>
                     <tr>
                        <td style="width:30%;padding-left:5%">店铺状态</td>
                        <td>@if($data['status'] == 0)店铺开启中···@else店铺关闭中···@endif</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">店铺拥有者(账号)</td>
                        <td>{{ $data['username'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">拥有者真实姓名</td>
                        <td>{{ $data['uname'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">拥有者手机号</td>
                        <td>{{ $data['phone'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">拥有者邮箱</td>
                        <td>{{ $data['email'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">店铺所属地</td>
                        <td>{{ $data['address'] }}</td>
                    </tr>
                    <tr>
                        <td style="width:30%;padding-left:5%">注册时间</td>
                        <td>@if($data['atime'] != null){{ date('Y-m-d H:i:s',$data['atime']) }}@endif</td>
                    </tr>
                    <tr>
	                    <td colspan='2' style="padding-left:65%;">
	                    	<button type="submit" class="btn btn-info"> <a href="/home/seller/store/edit?id={{ $data['id'] }}" style="color:#fff" onclick="return confirm('你确定要修改店铺信息吗？')">修改店铺信息</a></button>　
		                	<button type="reset" class="btn btn-danger">
                                @if($data['status'] == 0) 
                                    <a href="/home/seller/store/down?id={{ $data['id'] }}&status=1" style="color:#fff" onclick="return confirm('你确定要关闭店铺吗？')">关闭店铺</a>
                                @elseif($data['status'] == 1)
                                    <a href="/home/seller/store/down?id={{ $data['id'] }}&status=0" style="color:#fff" onclick="return confirm('你确定要开启店铺吗？')">开启店铺</a>
                                @endif
                            </button>
	                    </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
@endsection